<?php
namespace app\modules\admin\widgets;

use Yii;
use yii\base\Widget;
use app\modules\admin\models\SysMenu;
use app\modules\admin\models\StatusEnum;

class MenuLeft extends Widget
{
	public function run()
    {
        return $this->render('menu-left', [
            'menus' => SysMenu::getList(StatusEnum::ENABLED)
        ]);
    }
}